package com.shaozi.nc.quartz.workreport;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import com.shaozi.nc.quartz.base.BaseRuleJobExecute;
import com.shaozi.nc.quartz.manage.ReportManage;
import com.shaozi.lib.throwable.SzException;
/**
 * 调度 获取 调度所需要的时间
 *
 */
public class ReportRuleJobExecute extends BaseRuleJobExecute {

	private Logger logger = Logger.getLogger(ReportRuleJobExecute.class);

	@Autowired
	private ReportManage reportManage;

	public ReportRuleJobExecute() {

	}

	protected void handleCompany(String companyId) {
		try {
			reportManage.scheduleByConfig(companyId);
		} catch (Exception e) {
			logger.error(SzException.getStackMessage(e));
		}
	}

}
